function entityToString(entity) {
    let entities = entity.split(';')
    entities.pop()
    let tmp = ''
    for (let i = 0; i < entities.length; i++) {
        let num = entities[i].trim().slice(2)
        if (num[0] === 'x')//10进制还是16进制
            num = parseInt(num.slice(1), 16); else num = parseInt(num);
        tmp += String.fromCharCode(num)
    }
    return tmp
}

console.log("")